import request from '@/utils/request'

// 查询请假操作记录列表
export function listLeaveOperationRecords(query) {
  return request({
    url: '/routine/leaveOperationRecords/list',
    method: 'get',
    params: query
  })
}

// 查询请假操作记录详细
export function getLeaveOperationRecords(operationRecordsId) {
  return request({
    url: '/routine/leaveOperationRecords/' + operationRecordsId,
    method: 'get'
  })
}

// 新增请假操作记录
export function addLeaveOperationRecords(data) {
  return request({
    url: '/routine/leaveOperationRecords/add',
    method: 'post',
    data: data
  })
}

// 修改请假操作记录
export function updateLeaveOperationRecords(data) {
  return request({
    url: '/routine/leaveOperationRecords/update',
    method: 'post',
    data: data
  })
}

// 删除请假操作记录
export function delLeaveOperationRecords(operationRecordsId) {
  return request({
    url: '/routine/leaveOperationRecords/' + operationRecordsId,
    method: 'post'
  })
}
